package com.djzhou.gmms.service.message;

import java.util.List;

import com.djzhou.gmms.service.base.BaseService;
import com.djzhou.gmms.model.entity.PageBean;
import com.djzhou.gmms.model.message.TbMessage;

public interface MessageService extends BaseService<TbMessage>{
	/**
	 * 查询收件箱
	 * @return
	 */
	public PageBean<TbMessage> queryReceiver(Integer userId,int pageSize, int currentPage);
	/**
	 * 查询发件箱
	 * @param userId
	 * @return
	 */
	public PageBean<TbMessage> querySender(Integer userId,int pageSize, int currentPage);
	/**
	 * 通过接收人获取消息
	 * @param userId
	 * @return
	 */
	public List<TbMessage> queryMessageByUserId(Integer userId);
	/**
	 * 查询未读消息的条数
	 * @param userId
	 * @return
	 */
	public int queryMessageCount(Integer userId);
	/**
	 * 后台发送消息
	 *FOR JEasyFrame
	 * @param senderId
	 * @param receiverIds
	 * @param messageContent
	 */
	public void addSendMessage(Integer senderId,String receiverIds,String messageContent);
}
